package com.liang.springcloud;

import com.liang.myrule.LiangRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @Author:liangli
 * @Date:2020/11/12 10:09
 */
//ribbon和eureka整合后 客户端可以直接调用 不用关心ip地址和端口号
@SpringBootApplication
@EnableEurekaClient

@RibbonClient(name = "springcloud-provider-dept",configuration = LiangRule.class)
public class DeptConsumer_80 {

    public static void main(String[] args) {
        SpringApplication.run(DeptConsumer_80.class,args);
    }
}
